Java 11 Interview Questions and Answers
Related differences
Ques 21. What is Transport Layer Security (TLS) 1.3 in Java 11?
Transport Layer Security, or TLS, is a cryptographic protocol that protects data exchanged over a computer network. TLS (Transport Layer Security) and is the successor to SSL (Secure Sockets Layer). TLS provides secure communication between web browsers and servers.
TLS 1.3 is a major revision of the TLS protocol and provides significant security and performance improvements over previous versions.
Ques 22. What is ZGC: A Scalable Low-Latency Garbage Collector(Experimental) in Java 11?
The Z Garbage Collector, also known as ZGC, is a low latency scalable garbage collector designed to meet the following objectives.
- Pause times shall not exceed 10 ms
- Handle heaps ranging from a few hundred megabytes to multi terabytes in size
- Pause times do not increase with the size of the heap or live-set.
Ques 23. Write about Deprecate the Nashorn JavaScript Engine in Java 11?
Below two JDK modules will be terminally deprecated, by using annotation @Deprecated(forRemoval=true):
- jdk.scripting.nashorn -- contains the jdk.nashorn.api.scripting and jdk.nashorn.api.tree packages.
- jdk.scripting.nashorn.shell -- contains the jjs tool. Running jjs will display a warning:
Ques 24. Tell me about Deprecate the Pack200 Tools and API in Java 11.
Below three types will be deprecated from java.base module, i.e. with annotation @Deprecated(forRemoval = true):
- java.util.jar.Pack200
- java.util.jar.Pack200.Packer
- java.util.jar.Pack200.Unpacker
Most helpful rated by users:
- What is Java 11?
- What is Local-Variable Syntax for Lambda Parameters in Java 11?
- What is Java Mission Control in Java 11?
- What is the difference between Oracle JDK and OpenJDK?